﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Basics
{
    static class Math2
    {
        static public double VectorsToAngle(Vector2 vectorA, Vector2 vectorB)
        {
            double value;
            value = Math.Atan2(vectorB.Y - vectorA.Y, vectorB.X - vectorA.X);

            return MathHelper.ToRadians((float)value * (180 / MathHelper.Pi) + 90);
        }
    }
}
